package com.kun.video;

import com.kun.video.context.impl.StageSingletonContext;
import com.kun.video.controller.HomeController;
import javafx.stage.Stage;

/**
 * TODO
 *
 * @author gzc
 * @since 2025/3/9 17:55
 **/
public class Main extends AbstractApplication {

    public static void main(String[] args) throws Exception {
        run(Main.class, args, Main.class::getResource);
    }

    @Override
    protected Stage createAppStage() {
        return StageSingletonContext.getInstance(HomeController.class).getStage();
    }

    @Override
    protected String[] loadPackages() {
        return new String[]{"com.kun.video"};
    }

    @Override
    protected void doStart(Stage primaryStage) throws Exception {
        primaryStage.show();
    }
}
